<div class="tablelist">
    <div class="list-bd">
        {{each records as order index}}
        <div class="orderbox mb10">
            <div class="order-hd">
                <ul class="ul-order">
                    <li>订单编号：
                    {{if order.goods_label_type==2}}
                    	<a href="#order/subscribe/{{order.id}}">{{order.id}}</a>
                    {{else}}
                    	{{if order.order_status==2}}
                    	<a href="#order/deliverorder/{{order.id}}/2">{{order.id}}</a>
                    	{{else if order.order_status==1}}
                    	<a href="#order/deliverorder/{{order.id}}/1">{{order.id}}</a>
                    	{{else}}
                    		{{order.id}}
                    	{{/if}}
                    {{/if}}
                     </li>
                    <li>下单时间：{{order.add_time}}</li>
                    {{if order.havNew==1}}
                    <li>
		                <i class="iconfont mes-info mesInfo" data-rela-id="{{order.id}}" data-module-type="1">&#xe6a2;</i>	
	                </li>
	                {{/if}}
	                <li style="float:right;margin-right:3%">渠道来源：{{order.channel_name}}</li>
                </ul>
            </div>
            <div class="order-bd">
                <ul>
                    {{each order.orderDetailsVoList as details index}}
                    <li>
                        <div class="fm-goods-info">
                            <div class="fm-goods-img">
                                <!--  
                                <a href="javascript:void(0);">
                                    <img src="{{url}}/{{details.goods_main_photo_url}}" />
                                </a>
                                -->
                                <img src="{{url}}/{{details.goods_main_photo_url}}" />
                            </div>
                            <div class="fm-goods-con">
                                <p class="maintitle">
                                    <!--  <a href="javascript:void(0);">{{details.goods_name}}</a> -->
                                    {{details.goods_name}}
                                </p>
                                <p class="subtitle">
                                    {{details.goods_subhead}}
                                </p>
                                <p>
                                    <span class="price">￥{{details.goods_current_price}}</span><span class="num"> x {{details.goods_num}}</span>
                                </p>
                            </div>
                        </div>
                        <div class="fm-goods-type" style="width:10%;">
                          	  商品类型：{{order.goods_label_name}}
                        </div>
                        <div class="fm-goods-memo" style="width:18%;">
                            <p>用户名：{{order.username}}</p>
                            <p>用户账号：{{order.user_account}}</p>
                        </div>
                        <div class="fm-goods-type" style="width:12%; text-align:center;">
                          	  <p>实付款</p>
                          	  <p>￥{{order.order_price}}</p>
                          	  <p>（含运费￥{{order.ship_price}}）</p>
                          	  {{if order.coupon_type != 0}}
                          	  	 {{if order.coupon_type == 2}}
                          	  	 	<p>（兑换券抵扣）</p>
                          	  	 {{else}}
                          	  	 	<p>（优惠券抵扣￥{{order.coupon_reduce_price}}）</p>
                          	  	 {{/if}}
                          	  {{/if}}
                          	  
                        </div>
                        <div class="fm-goods-result" style="width:15%;">
                            	<P>订单状态: {{if order.order_status==0}} 待付款 {{else if order.order_status==1}} 待发货 {{else if order.order_status==2}} 已发货 {{else if order.order_status==3}} 交易成功 {{else if order.order_status==4}} 交易关闭 {{else if order.order_status==10}} 支付结果确认中 {{/if}}</P>
                            	{{if order.order_status !=0 && order.order_status !=4}}
                            	<P>
                            		支付方式:{{order.payment}}
                            	</P>
                            	{{/if}}
                        </div>
                        <div class="fm-goods-result">
                        	  {{if order.order_status==0}}
                          	  <a href="javascript:void(0);" class="editPrice" data-of-id="{{order.id}}" data-user-account="{{order.user_account}}" data-total={{order.order_price}} data-goods-price={{order.goods_price}} data-ship-price={{order.ship_price}}>修改价格</a>
                          	  {{/if}}
                        </div>
                        <div class="clearit"></div>
                    </li>
                    {{/each}}
                </ul>
            </div>
        </div>
        {{/each}}
    </div>
</div>
